if(navigator.serviceWorker) {
  window.addEventListener('load', () => {
    navigator.serviceWorker.register('/sw.js').then((register) => {
      console.log("sw register successed")
    }).catch((err) => {
      console.log("sw register failed")
    })
  })
}